module.exports = {
    module: {
        rules: [
            {
                test: /\.js$/,
                exclude: /node_modules/,
                use: {
                    loader: 'babel-loader',
                    options: {
                        presets: ['es2015', 'react', 'stage-0', ['env',{targets:{browsers:["last 2 version"]}}]]
                    }
                }
            }
        ]
    }

}
